package com.qk.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qk.dto.course.CourseDTO;
import com.qk.entity.Course;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * &#064;author：zzq
 * &#064;createTime：2025/10/09 10:02
 * &#064;description：
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    List<Course> selectByPage(CourseDTO dto);

    @Select("select * from course")
    List<Course> list();

    @Select("select * from course where subject = #{subject}")
    List<Course> listBySubject(String subject);
}
